<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:68:"C:\wamp\www\singwa\public/../application/index\view\index\index.html";i:1559701688;s:70:"C:\wamp\www\singwa\public/../application/index\view\public\header.html";i:1559701688;s:70:"C:\wamp\www\singwa\public/../application/index\view\public\footer.html";i:1559701688;}*/ ?>
<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>个人博客</title>
</head>

<link href="__STATIC__/index/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__STATIC__/index/css/common.css" />
<link href="logo.ico" rel="shortcut icon" />
<script src="__STATIC__/index/plugin/jquery.min.js"></script>
<script src="__STATIC__/index/plugin/bootstrap/js/bootstrap.min.js"></script>




<body>
<div class="w_header">
  <div class="container">
    <div class="w_header_top">
      <a href="#" class="w_logo"></a>
      <span class="w_header_nav">
					<ul>
						<li><a href="<?php echo url('index/index'); ?>" class="active">首页</a></li>
						<li><a href="">关于</a></li>
						<li><a href="">成长</a></li>
						<li><a href="">学习</a></li>
						<li><a href="">娱乐</a></li>
						<li><a href="">说说</a></li>
						<li><a href="">留言</a></li>
					</ul>
				</span>
      <div class="w_search">
        <div class="w_searchbox">
          <input type="text" placeholder="search" />
          <button>搜索</button>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="w_container">
    <div class="container">
        <div class="row w_main_row">
            <div class="col-lg-9 col-md-9 w_main_left">
                <!--滚动图开始-->
                <div class="panel panel-default">

                    <div id="w_carousel" class="carousel slide w_carousel" data-ride="carousel">
                        <!-- Indicators -->
                        <ol class="carousel-indicators">
                            <li data-target="#w_carousel" data-slide-to="0" class="active"></li>

                            <?php $__FOR_START_5053__=1;$__FOR_END_5053__=$bannerNum;for($i=$__FOR_START_5053__;$i < $__FOR_END_5053__;$i+=1){ ?>
                                <li data-target="#w_carousel" data-slide-to="<?php echo $i; ?>"></li>
                            <?php } ?>
                        </ol>

                        <!-- Wrapper for slides -->
                        <div class="carousel-inner" role="listbox">
                                <?php if(is_array($banners) || $banners instanceof \think\Collection): $k = 0; $__LIST__ = $banners;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;if($k == 1): ?>
                                    <div class="item active">
                                    <?php else: ?>
                                     <div class="item">
                                     <?php endif; ?>
                                        <img src="<?php echo $vo['image']; ?>" alt="...">
                                        <div class="carousel-caption">
                                            <h3><?php echo $vo['title']; ?></h3>
                                            <p><?php echo $vo['description']; ?></p>
                                        </div>
                                    </div>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>

                        <!-- Controls -->
                        <a class="left carousel-control" href="#w_carousel" role="button" data-slide="prev">
                            <span class="glyphicon glyphicon-chevron-left"></span>
                            <span class="sr-only">Previous</span>
                        </a>
                        <a class="right carousel-control" href="#w_carousel" role="button" data-slide="next">
                            <span class="glyphicon glyphicon-chevron-right"></span>
                            <span class="sr-only">Next</span>
                        </a>
                    </div>

                </div>

                <div class="panel panel-default contenttop">
                    <a href="article_detail.html">
                        <strong>博主置顶</strong>
                        <h3 class="title">嫁人就嫁程序员</h3>
                        <p class="overView">个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中。。。</p>
                    </a>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">最新发布</h3>
                    </div>

                    <div class="panel-body">

                        <!--文章列表开始-->
                        <div class="contentList">



                            <!--没有图片的内容-->
                            <?php if(is_array($articles) || $articles instanceof \think\Collection): $i = 0; $__LIST__ = $articles;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['image'] == ''): ?>
                            <div class="panel panel-default">
                                <div class="panel-body">

                                    <h4><a class="title" href="<?php echo url('article/detail',['id'=>$vo['id']]); ?>"><?php echo $vo['title']; ?></a></h4>
                                    <p>
                                        <?php if(is_array($vo['articleTag']) || $vo['articleTag'] instanceof \think\Collection): $i = 0; $__LIST__ = $vo['articleTag'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?>
                                        <a class="label label-default"><?php echo $sub['name']; ?></a>

                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                    </p>
                                    <p class="overView"><?php echo $vo['description']; ?></p>
                                    <p><span class="count"><i class="glyphicon glyphicon-user"></i><a href="#"><?php echo $vo['username']; ?></a></span> <span class="count"><i class="glyphicon glyphicon-eye-open"></i>阅读:<?php echo $vo['reading']; ?></span><span class="count"><i class="glyphicon glyphicon-comment"></i>评论:0</span><span class="count"><i class="glyphicon glyphicon-time"></i><?php echo date("Y-m-d", $vo['create_time']); ?></span></p>

                                </div>
                            </div>
                            <?php else: ?>

                            <!--有图片的内容-->
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <div class="contentleft">
                                        <h4><a class="title" href="<?php echo url('article/detail',['id'=>$vo['id']]); ?>"><?php echo $vo['title']; ?></a></h4>
                                        <p>
                                            <?php if(is_array($vo['articleTag']) || $vo['articleTag'] instanceof \think\Collection): $i = 0; $__LIST__ = $vo['articleTag'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?>
                                                <a class="label label-default"><?php echo $sub['name']; ?></a>

                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                        </p>
                                        <p class="overView"><?php echo $vo['description']; ?></p>
                                        <p><span class="count"><i class="glyphicon glyphicon-user"></i><a href="#"><?php echo $vo['username']; ?></a></span> <span class="count"><i class="glyphicon glyphicon-eye-open"></i>阅读:<?php echo $vo['reading']; ?></span><span class="count"><i class="glyphicon glyphicon-comment"></i>评论:0</span><span class="count"><i class="glyphicon glyphicon-time"></i><?php echo date("Y-m-d", $vo['create_time']); ?></span></p>
                                    </div>
                                    <div class="contentImage">
                                        <div class="row">
                                            <a href="#" class="thumbnail w_thumbnail">
                                                <img src="<?php echo $vo['image']; ?>" alt="...">
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php endif; endforeach; endif; else: echo "" ;endif; ?>





                        </div>
                        <!--文章列表结束-->

                    </div>
                </div>
            </div>

            <!--左侧开始-->
            <div class="col-lg-3 col-md-3 w_main_right">

                <div class="panel panel-default sitetip">
                    <a href="article_detail.html">
                        <strong>站点公告</strong>
                        <h3 class="title">嫁人就嫁程序员</h3>
                        <p class="overView">个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中个人网站正在建设中。。。</p>
                    </a>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">热门标签</h3>
                    </div>
                    <div class="panel-body">
                        <div class="labelList">
                            <?php if(is_array($tags) || $tags instanceof \think\Collection): $i = 0; $__LIST__ = $tags;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                <a class="label label-default"><?php echo $vo['name']; ?></a>
                            <?php endforeach; endif; else: echo "" ;endif; ?>

                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">最新发布</h3>
                    </div>
                    <div class="panel-body">
                        <ul class="list-unstyled sidebar">
                            <?php if(is_array($articles) || $articles instanceof \think\Collection): $i = 0; $__LIST__ = $articles;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <li>
                                <a href="<?php echo url('article/detail',['id'=>$vo['id']]); ?>"><?php echo $vo['title']; ?></a>
                            </li>
                            <?php endforeach; endif; else: echo "" ;endif; ?>

                        </ul>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">友情链接</h3>
                    </div>
                    <div class="panel-body">
                        <div class="newContent">
                            <ul class="list-unstyled sidebar shiplink">

                                <li>
                                    <a href="http://www.thinkphp.cn/" target="_blank">thinkPHP框架</a>
                                </li>
                                <li>
                                    <a href="http://www.h-ui.net/" target="_blank">H-ui</a>
                                </li>

                            </ul>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">关注微信公众号</h3>
                    </div>
                    <div class="panel-body">
                        <img src="__STATIC__/index/img/qrcode.jpg" style="height: 230.5px;width: 230.5px;" />
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>

<div class="w_foot">
    <div class="w_foot_copyright">Copyright &copy; 2017-2020, www.l-yh.xyz. All Rights Reserved. <span>|</span>
        <a target="_blank" href="http://www.miitbeian.gov.cn/" rel="nofollow">皖ICP备17002922号</a>
    </div>
</div>
</body>
<script type="text/javascript">
    var $backToTopEle = $('<a href="javascript:void(0)" class="Hui-iconfont toTop" title="返回顶部" alt="返回顶部" style="display:none">^</a>').appendTo($("body")).click(function() {
        $("html, body").animate({ scrollTop: 0 }, 120);
    });
    var backToTopFun = function() {
        var st = $(document).scrollTop(),
            winh = $(window).height();
        (st > 0) ? $backToTopEle.show(): $backToTopEle.hide();
        /*IE6下的定位*/
        if(!window.XMLHttpRequest) {
            $backToTopEle.css("top", st + winh - 166);
        }
    };

    $(function() {
        $(window).on("scroll", backToTopFun);
        backToTopFun();
    });
</script>

</html>
